/**
 * Description here...
 * @author Ricardo Franco
 * @since 06/02/2008
 * @version 0.1
 */

package text {	

	public class TextFitterSettings {

		static public const UPPERCASE	:String = "UpperCase";
		static public const LOWERCASE	:String = "LowerCase";
		static public const NOCASE		:String = "noCase";
		
		private var _x					:Number;
		private var _y					:Number;
		private var _textSize			:Number;
		private var _height				:Number;
		private var _caseType			:String;			

		public function TextFitterSettings(x:Number, y:Number, textSize:Number, height:Number, caseType:String=NOCASE) {
			this._x 			= x;
			this._y 			= y;
			this._textSize 		= textSize;
			this._height 		= height;
			this._caseType 		= caseType;
		}

		public function get x():Number {return _x;}
		public function get y():Number {
			return _y;
		}

		public function get textSize():Number {return _textSize;}
		public function get height():Number {
			return _height;
		}

		public function get caseType():String {
			return _caseType;
		}		

		public function toString():String {
			var s:String =  "[ TextFitterSettings ]\n";
			s += "x: " + this._x.toString() + "\n";
			s += "y: " + this._y.toString() + "\n";
			s += "textSize: " + this._textSize.toString() + "\n";
			s += "height: " + this._height.toString() + "\n";
			s += "caseType: " + this._caseType.toString() + "\n";
			return s;			
		}
	}
}
